﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using Xunit.Extensions;

namespace UnitTests.WebApp
{
	public class EncryptString
	{
		[Theory]
		[InlineData("Hello world", "Password")]
		[InlineData("meh", "meh")]
		public void Test(string message, string password)
		{
			string encrypted = Twipler.WebApp.Encryption.EncryptString(message, password);
			string decrypted = Twipler.WebApp.Encryption.DecryptString(encrypted, password);

			Assert.Equal(message, decrypted);
		}
	}
}
